package com.example.www.Service;

import com.example.www.JieKouShiTiYI.UserRepository;
import com.example.www.ShiTyI.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: zhaoss
 * @Date: 2024/11/15 - 11 - 15 - 15:53
 * @Description: com.example.www.Service
 * @version: 1.0
 */
@Service
public class MessageService {
    @Autowired
    private UserRepository userRepository;

    public User getMessage(String author, String message) {
        User user = new User();
        user.setAuthor(author);
        // 这里应该添加更多的逻辑来处理消息
        user.setMessage(message);
        return user;
    }
}
